package com.lagou.sqlSession;

import java.util.List;

/**
 * @author HZF
 * @date 2020/4/2220:39
 * description
 */
public interface SqlSession {

    //查询所有
    public <E> List<E> selectList(String statementid,Object... params) throws Exception;

    //根据条件查询单个
    public <T> T selectOne(String statementid,Object... params) throws Exception;

    //更新用户
    public boolean updateUser(String statementid,Object... params) throws Exception;
    ;
    //删除用户
    public boolean deleteUser(String statementid,Object... params) throws  Exception;
}
